<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>快闪交友派趴</title>
<link rel="stylesheet" href="<%=path%>/css/dating/public.css" />
		
		<link rel="stylesheet" href="<%=path%>/css/validationEngine.jquery.css" />
		<script type="text/javascript" src="<%=path%>/js/dating/jquery-2.2.3.min.js" ></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?4c433b77bba83d2a42ff6f1240750d6e";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>
<body style="background: #ffffff;">
	<div class="first-page">
			<div class="mp">
				<div class="mp-bd">
					<img src="<%=path%>/img/dating/map.jpg" alt="" />				
				</div>			
			</div>
			<div class="mp">
			    <div class="mp-car">
					<img src="<%=path%>/img/dating/scar.png" alt="" />
				</div>
			</div>
			<div class="mp-tt" >
				<div class="mp-pic">
					<img src="<%=path%>/img/dating/p4.png" alt="" />
					<img src="<%=path%>/img/dating/p2.png" alt="" />
					<img src="<%=path%>/img/dating/p1.png" alt="" />
			    </div>
			</div>
			<div class="ld" style="z-index:9999;top:17%;margin-top: 0;">
				<div class="ld-bd fly">
					<img src="<%=path%>/img/dating/dog.png" alt=""  class="zx"/>
					<div class="yf">
						<img src="<%=path%>/img/dating/yf1.png" alt=""/>
						<img src="<%=path%>/img/dating/yf2.png" alt=""/>
						<img src="<%=path%>/img/dating/yf3.png" alt=""/>
						<img src="<%=path%>/img/dating/yf4.png" alt=""/>
					</div>
				</div>			
			</div>
			<div class="rock">
				<div class="rock-bd">
					<img src="<%=path%>/img/dating/p3.png" alt="" />
				</div>
			</div>
		</div>
		<div class="bl">
			<div class="bl-bd"><img src="<%=path%>/img/dating/ball.png" alt="" /></div>
		</div>
		<div class="mt">
			<div class="mt-car">
				<img src="<%=path%>/img/dating/car1.png" alt="" class="front-car"/>
				<img src="<%=path%>/img/dating/car2.png" alt="" class="back-car"/>
			</div>			
			<div class="mt-pqj">
				<img src="<%=path%>/img/dating/ptj.png" alt=""/>
			</div>
			<div class="mt-jt">
				<img src="<%=path%>/img/dating/jt.png" alt="" />
			</div>
		</div>
		<div class="mt-ft">
			<div class="mt-ft-bd"><img src="<%=path%>/img/dating/ft.png" alt=""/></div>
		</div>
	<div class="biao bdxs">			
			<div class="biao-bd">
				<div class="pic">
					<img src="<%=path%>/img/dating/bgb1.png" alt="" />
				</div>
				<div class="ppbd">									
					<p>car2 go 11.11</p>
					<p>"快闪交友派趴"</p>
					<p>11月11日 18:00-19:00</p>
					<p>南滨路棠烟雨	公园</p>
					<p>花式互动，刺激小惊喜，美如画的TA...</p>
					<p>只能你来</p>
					 <form id="datingForm" action="<%=path%>/dating/signIn.html" method="post">
					<input name="spread"  type="hidden" value="${spread}"/>
					<div class="bd">
						<span>姓名</span>
						<input name="name" type="text" class="validate[required]" data-prompt-position="centerRight" />
					</div>
					<div class="bd">
						<span>电话</span>
						<input name="phone" type="text" class="validate[required,minSize[11],maxSize[11],custom[phone]]" showOneMessage="无效的手机号" data-errormessage="无效的手机号" data-prompt-position="centerRight" />
					</div>
					<div class="bd" style="margin-bottom: 0;">					
						<span>性别</span>
						<span class="pay_list_c1">
						    <input type="radio"  name="gender" value="M" class="radioclass validate[required] radio" data-prompt-position="topLeft" />					   
						</span>
						 <span>男</span>
						<span class="pay_list_c1">
						    <input type="radio"  name="gender" value="W" class="radioclass validate[required] radio" data-prompt-position="topLeft"/>					   
						</span>					
						 <span>女</span>
					</div>
					<div class="bd" style="margin-top: 0;">					
						<span style="width:100%">是否已注册car2go</span>
						<span class="pay_list_c1">
						    <input type="radio"  name="member" value="Y" class="radioclass validate[required] radio" data-prompt-position="topLeft"/>					   
						</span>
						 <span>是</span>
						<span class="pay_list_c1">
						    <input type="radio"  name="member" value="N" class="radioclass validate[required] radio" data-prompt-position="topLeft"/>					   
						</span>					
						 <span>否</span>
					</div>
					<div class="bd">
						<span style="width:50%">选择参与时间</span>
						<select name="signTime">
							<option value="11.11">11月11日</option>
							<option value="11.12">11月12日</option>
							<option value="11.13">11月13日</option>
						</select>
					</div>
					
					<div class="bd">
						<a href="#" class="a-bd qx">取消</a>
						<a href="javascript:sub();" class="a-bd tj">提交</a>
					</div>
					 </form> 
				</div>
			</div>
		</div>
		<div class="biao wc">			
				<div class="biao-bd">
					<div class="pic">
						<img src="<%=path%>/img/dating/bgb2.png" alt="" />
					</div>
					<div class="ppwc">
						<p>恭喜你，</p>
						<p>已经迈出了</p>
						<p>奔向成功的第一步!</p>
						<p>快邀请朋友一起报名参加，</p>
						<p>逐爱路上搭个伙吧！</p>
						<div class="bd">
							<a href="#" class="a-bd all-s">一起耍</a>
						</div>
					</div>
					
				</div>
			</div>
			<div class="share">
				<img src="<%=path%>/img/dating/jt.png" alt="" />
				<span>点击分享</span>
			</div>
		<script type="text/javascript" src="<%=path%>/js/dating/public.js"></script>
		<script type="text/javascript"	src="<%=path%>/js/jquery.validationEngine.js"></script>
		<script type="text/javascript"	src="<%=path%>/js/jquery.validationEngine-zh_CN.js"></script>
		<script type="text/javascript">
			
			function sub(){
				$.ajax({
	                cache: true,
	                type: "POST",
	                url:ajaxCallUrl,
	                data:$('#datingForm').serialize(),// 你的formid
	                async: false,
	                error: function(request) {
	                    alert("Connection error");
	                },
	                success: function(data) {
	                	$('.biao').slideUp(2000);
				    	setTimeout(wcshow,2000);
	                }
	            });
			}
			$(document).ready(function(){			
				
				$("#datingForm").validationEngine({
				  maxErrorsPerField: 1
				  });
				});
		</script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
		<script type="text/javascript">
		var spread = "${spread}";
		//微信jssdk config
		wx.config({
			debug : false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
			appId : '${appid}', // 必填，公众号的唯一标识
			timestamp : '${timestamp}', // 必填，生成签名的时间戳
			nonceStr : '${noncestr}', // 必填，生成签名的随机串
			signature : '${signature}',// 必填，签名，见附录1
			jsApiList : [ 'checkJsApi', //判断当前客户端版本是否支持指定JS接口
			'onMenuShareTimeline', //分享给好友
			'onMenuShareAppMessage', //分享到朋友圈
			'onMenuShareQZone', //分享到Q空间
			'onMenuShareWeibo',//分享到微博
			'onMenuShareQQ'//分享到qq
			]
		// 必填，需要使用的JS接口列表，所有JS接口列表见附录2
		});
		wx.ready(function() { //ready函数用于调用API，如果你的网页在加载后就需要自定义分享和回调功能，需要在此调用分享函数。//如果是微信游戏结束后，需要点击按钮触发得到分值后分享，这里就不需要调用API了，可以在按钮上绑定事件直接调用。因此，微信游戏由于大多需要用户先触发获取分值，此处请不要填写如下所示的分享API
					wx.onMenuShareTimeline({ //分享到朋友圈的API  
								title : 'car2go·快闪交友派趴', // 分享标题
								link : 'http://run.xuanzhen-tech.com/car2go_wx/dating/registered.html?spread=wechatshare', // 分享链接
								imgUrl : 'http://run.xuanzhen-tech.com/car2go_wx/img/car2.jpg', // 分享图标
								success : function() {
									// 用户确认分享后执行的回调函数
									$.ajax({
										type: "GET",
										 url: "<%=path%>/dating/wechatShare.html",
										 data: {share:1},
									});
								},
								cancel : function() {
									// 用户取消分享后执行的回调函数
								}
							});
					wx.onMenuShareAppMessage({//分享到朋友 
								title : 'car2go·快闪交友派趴', // 分享标题
								desc : '花式互动，刺激小惊喜，美如画的TA只为你来', // 分享描述
								link : 'http://run.xuanzhen-tech.com/car2go_wx/dating/registered.html?spread=wechatshare', // 分享链接
								imgUrl : 'http://run.xuanzhen-tech.com/car2go_wx/img/car2.jpg', // 分享图标
								type : 'link', // 分享类型,music、video或link，不填默认为link
								dataUrl : '', // 如果type是music或video，则要提供数据链接，默认为空
								success : function() {
									// 用户确认分享后执行的回调函数
								},
								cancel : function() {
									// 用户取消分享后执行的回调函数
								}
							});
					wx.onMenuShareQZone({//分享到qq空间
					    title: 'car2go·快闪交友派趴', // 分享标题
					    desc: '花式互动，刺激小惊喜，美如画的TA只为你来', // 分享描述
					    link: 'http://run.xuanzhen-tech.com/car2go_wx/dating/registered.html?spread=wechatshare', // 分享链接
					    imgUrl: 'http://run.xuanzhen-tech.com/car2go_wx/img/car2.jpg', // 分享图标
					    success: function () { 
					       // 用户确认分享后执行的回调函数
					    },
					    cancel: function () { 
					        // 用户取消分享后执行的回调函数
					    }
					});
					wx.onMenuShareWeibo({
					    title: 'car2go·快闪交友派趴', // 分享标题
					    desc: '花式互动，刺激小惊喜，美如画的TA只为你来', // 分享描述
					    link: 'http://run.xuanzhen-tech.com/car2go_wx/dating/registered.html?spread=wechatshare', // 分享链接
					    imgUrl: 'http://run.xuanzhen-tech.com/car2go_wx/img/car2.jpg', // 分享图标
					    success: function () { 
					       // 用户确认分享后执行的回调函数
					    },
					    cancel: function () { 
					        // 用户取消分享后执行的回调函数
					    }
					});
					wx.onMenuShareQQ({//分享到qq
					    title: 'car2go·快闪交友派趴', // 分享标题
					    desc: '花式互动，刺激小惊喜，美如画的TA只为你来', // 分享描述
					    link: 'http://run.xuanzhen-tech.com/car2go_wx/dating/registered.html?spread=wechatshare', // 分享链接
					    imgUrl: 'http://run.xuanzhen-tech.com/car2go_wx/img/car2.jpg', // 分享图标
					    success: function () { 
					       // 用户确认分享后执行的回调函数
					    },
					    cancel: function () { 
					       // 用户取消分享后执行的回调函数
					    }
					});
					
					
				});
		</script>
</body>
</html>